<!--
 * @Author: xiaonancheng
 * @Date: 2023-07-01 17:32:04
 * https://www.cnblogs.com/xiaonancheng
 * Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
-->

{% extends 'base.html' %}

{% load static %}
<!-- 加载static  -->


{% block main %}
{% include 'test.html' %}
<img src="/static/img/helian.jpg" alt="">
<img src="{% static 'img/helian.jpg' %}" alt="">
<h1 style="text-align: center;">{{name}},欢迎你！！！</h1>
<h1 style="text-align: center;">{{lis.0}}</h1>
<h1 style="text-align: center;">{{dic.name}}</h1>
<h1 style="text-align: center;">{{num}}</h1>
<!-- <table>

    <th>
    <td>姓名</td>
    </th>
    {% for i in lis %}
    <tr>
        <td>{{i}}</td>
    </tr>
    {% empty %}
    空空如也
    {% endfor %}

</table> -->
<!-- {% if num > 50 %}
<h2> num的值是大于50</h2>
{% elif num == 30 %}
<h2> num的值等于30</h2>
{% else %}
<h2> num的值是小于等于50</h2>

{% endif %}

<h1>{{stri|upper}}</h1>
<h1>{{now|date:"F j, Y"}}</h1>
<h2>{{sunlong|default:'孙龙'}}</h2>
<h2>{{p|truncatechars:10}}</h2> -->
<!--  -->
{% for k,v in dic.items %}
    <p>
        {{ forloop.counter }}
        {{ forloop.counter0 }}
        {{ forloop.revcounter }}
        {{ forloop.revcounter0 }}
        {% if forloop.first %}
        <p>这是第一次循环</p>
        {% endif %}
        {# #}

        {% if forloop.last %}
        <p>这是最后一项</p>
        {% endif %}
    </p>
    <p>{{k}}---{{v}}</p>
{% endfor %}

{% endblock %}

